package leetcode_501_600;

import javafx.scene.effect.SepiaTone;

import java.util.HashSet;
import java.util.Set;

public class LeeCode_575 {
    public static void main(String[] args) {

    }
    private static int distributeCandies(int[] candyType) {
        int n = candyType.length;
        Set<Integer> set = new HashSet<>();
        for (int i : candyType) {
            set.add(i);
        }
        return Math.min(set.size(), n / 2);
    }
}
